/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

/**
 * Apaga todo dicionario de dados e cria com base nas entidades(classes) mapeadas
 *
 * @author Carlos Francisco de Moura 
 * 
 */
public class GerarBanco {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Configuration config = new AnnotationConfiguration();
        config.configure();
        SchemaExport schema = new SchemaExport(config);
        schema.create(true, true);
    }
}
